package com.yc.boot.train.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * Create with IntelliT IDEA
 *
 * @Author: zhengmingzhe
 * @Date: 2021/12/30/15:30
 * @Description:   用户课程关联实体类
 */
@Data
@Accessors(chain = true)
@TableName("user_course")
public class UserCourse {
    @TableId(value = "user_id", type = IdType.INPUT)
    @ApiModelProperty(value = "用户Id")
    private Long userId;

    @TableField("course_id")
    @ApiModelProperty(value = "课程Id")
    private Long courseId;
}
